package com.junit;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sjzl.dao.impl.DaoImpl;
import com.sjzl.entity.Reply;


public class ReplyTest {
	@Test
	public void main(){
		ApplicationContext ac = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });
		DaoImpl dao = (DaoImpl) ac.getBean("daoImpl");
		
		Reply reply = (Reply) dao.get(Reply.class, 3);
		System.out.println(reply.getContent());
	}
}
